import React from 'react';
import { connect } from 'dva';
import Mylayout from '../components/layout/Mylayout';
import user from './system/organization/user';

//import menu2 from '../routes/menu/menu2';
//import menu3 from '../routes/menu/menu3';
//import menu4 from '../routes/menu/menu4';
import { Router, Route } from 'dva/router';
import { getMenuList } from '../MenuHolder';
function App({ dispatch, children, location }) {

  /**
      //<Route path="/menu2" component={menu2}/>
      //  <Route path="/menu3" component={menu3}/>
      //  <Route path="/menu4" component={menu4}/>
      **/
  const Listmenu=getMenuList();

const menuAll= {
  Listmenu,



};
return (
  <Mylayout {...menuAll}>
    {children}
    <Route path="/system/organization/user" component={user}/>


  </Mylayout>

)

}

export default connect()(App);
